package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.ysd.twocrm.utils.PoiHandler;

//学生表
public class Student {
    @PoiHandler(excelHeader = "学生编号")
@TableId(value = "studentId",type = IdType.AUTO)
    private Integer studentId;//学生编号
    @PoiHandler(excelHeader = "学生姓名")
    private String studentName;//学生姓名
    @PoiHandler(excelHeader = "学生性别")
    private String studentSex;//学生性别
    @PoiHandler(excelHeader = "学生备注信息")
    private String studentRemark;//学生备注信息
    @PoiHandler(excelHeader = "学生学号")
    private String studentNo;//学生学号
    @PoiHandler(excelHeader = "学生状态")
    private Integer studentStatus;//学生状态 0:在校 1：回家 2：请假  默认在校  3刚添加需要老师查看信息
    @PoiHandler(excelHeader = "班级编号")
    private Integer stuClassId;//外键--学生班级
    @PoiHandler(excelHeader = "班级信息",excelIgnore = true)//excelIgnore = true：导出的时候不显示这个数据  默认为false
    @TableField(exist = false)//标志这个字段非数据库字段
    private StudentClass studentClass;//班级表
    @PoiHandler(excelHeader = "用户编号",excelIgnore = true)
    private Integer exit1;//备用字段1 对应用户
    @PoiHandler(excelHeader = "备用字段2",excelIgnore = true)
    private String exit2;//备用字段2

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public Integer getStuClassId() {
        return stuClassId;
    }

    public void setStuClassId(Integer stuClassId) {
        this.stuClassId = stuClassId;
    }

    public Student(Integer studentId, String studentName, String studentSex, String studentRemark, String studentNo, Integer studentStatus, Integer stuClassId) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentSex = studentSex;
        this.studentRemark = studentRemark;
        this.studentNo = studentNo;
        this.studentStatus = studentStatus;
        this.stuClassId = stuClassId;
    }

    public StudentClass getStudentClass() {
        return studentClass;
    }

    public void setStudentClass(StudentClass studentClass) {
        this.studentClass = studentClass;
    }



    public Student() {
        super();
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentSex() {
        return studentSex;
    }

    public void setStudentSex(String studentSex) {
        this.studentSex = studentSex;
    }

    public String getStudentRemark() {
        return studentRemark;
    }

    public void setStudentRemark(String studentRemark) {
        this.studentRemark = studentRemark;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public Integer getStudentStatus() {
        return studentStatus;
    }

    public void setStudentStatus(Integer studentStatus) {
        this.studentStatus = studentStatus;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", studentSex='" + studentSex + '\'' +
                ", studentRemark='" + studentRemark + '\'' +
                ", studentNo='" + studentNo + '\'' +
                ", studentStatus=" + studentStatus +
                ", stuClassId=" + stuClassId +
                ", studentClass=" + studentClass +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }
}
